{extend name="base" /}

{block name="title"}{$diggingsTitle} - 矿区{/block}

{block name="main"}
<div class="main">
	<div class="container">
		<div class="sec_nav">
			{include file="diggings/nav_row"}
		</div>
		
		<div class="qd_box">
			<div class="tsy"><i></i>注意：接单后请务必转账相应金额给对方，如果点击了“支付”，而实际上并没有打款，举报后将直接封号处理！</div>
			<div class="table_modal">
				<div class="tab_title">
					<p>{$diggingsTitle}</p>
				</div>

				<div class="qd_table_box">
					<div class="table-responsive">
					  	<table class="table text-center table-bordered">
					    	<tr>
					    		<th>流水号</th>
					    		<th>提现时间</th>
					    		<th>提现账户</th>
					    		<th>交易状态</th>
					    		<th>普通收益</th>
					    		<th>VIP收益</th>
					    		<th>提现金额</th>
					    		<th>操作</th>
					    	</tr>
					    	{volist name="helpGets" id="helpGet"}
					    	<tr>
					    		<td>{$helpGet.order_id}</td>
					    		<td>{$helpGet.create_time}</td>
					    		<td>{$helpGet.username}</td>
					    		<td>{$helpGet.status}</td>
					    		<td>{:getParam('HELP_TO_MONEY_INCOME') / 100 * $helpGet.money + $helpGet.money}</td>
					    		<td>{:getParam('HELP_TO_VIP_MONEY_INCOME') / 100 * $helpGet.money + $helpGet.money}</td>
					    		<td>{$helpGet.money}</td>
					    		<td>
					    			{gt name="Think.session.user_id" value="0"}
									<a href="javascript:grabHlepGet({$helpGet.help_get_id}, {$action});">抢单</a>
									{else/}
									<a href="#ale_login" class="ale_btn">抢单</a>
									{/gt}
					    		</td>
					    	</tr>
					    	{/volist}
					  	</table>
					</div>
					<nav>
					  <!--<ul class="pager">
					    <li><a href="#">上一页</a></li>
					    <li><a href="#">下一页</a></li>
					  </ul>-->
					</nav>
				</div>
			</div>
			
		</div>
		
		
		<div class="zysx_box">
			<ul>
				<li>1.刷客们接单支付时，务必看清云支付与实名是否一致，否则得不到维权补偿</li>
				<li>2.给对方打款时请备直接云支付！不用备注！请直接云支付！不用备注！</li>
				<li>3.当提现方在支付的{:getParam('MONEY_FREEZE_TIME')}天后自动确认收款，普通抢单收益{:getParam('HELP_TO_MONEY_INCOME')}%，VIP抢单收益{:getParam('HELP_TO_VIP_MONEY_INCOME')}%。</li>
				<li>4.接单后，请在{:getParam('HELP_TO_MONEY_OVERTIME')}个小时内支付给对方。如超出{:getParam('HELP_TO_MONEY_OVERTIME')}小时系统自动取消该订单</li>
				<li>5.如虚假支付，直接封号处理</li>
				<li>6.如刷单24小时内无人接单，系统按照原提现机制处理该订单</li>
				<li>7.刷单冷却时间：普通会员{:getParam('GET_HELP_GET_FREEZE_TIME')}分钟，VIP会员{:getParam('GET_HELP_GET_FREEZE_TIME_VIP')}分钟</li>
				<li>8.新手区仅限新手任务，接满1单为老手，1单以下为新手！</li>
			</ul>
		</div>
	
	</div>
	
</div>
{/block}
{block name="script"}
<script type="text/javascript">
	function grabHlepGet(help_get_id, action) {
		if(window.confirm('确认抢单？')) {
			$.post('/diggings/grabHlepGet', {
				help_get_id: help_get_id,
				action: action,
				__token__: "{$Request.token}"
			}, function(result) {
				console.log(result);
				if(result.code == 0) {
					alert(result.message);
					window.location.href = "/farming";
				} else {
					alert(result.message);
				}
			}, 'json');
		}
	}
</script>
{/block}